 <div id="buy917_menu">
 		{php $file = explode('/', $_SERVER['SCRIPT_NAME']);$file_name = $file[1]}
    	<a href="index.php"{if $file_name == "index.php"}class="on"{/if}>今日團購</a>
        <a href="grouplist.php"{if $file_name == "grouplist.php"}class="on"{/if}>過往團購</a>
        <a href="article.php?aid=3" {if $_GET['aid'] == 3}class="on"{/if}>怎樣 揪一起</a>
        <a href="article.php?aid=1" class="end {if $_GET['aid'] == 1}on{/if}" >問答 揪一起</a>       
</div>